package com.zyong.design.pattern.state.case2;

/**
 * @author zyong
 */
public class Client {
    public static void main(String[] args) {
        // 创建活动对象，奖品有1个奖品
        Activity activity = new Activity(1);

        for (int i = 0; i < 300; i++) {
            System.out.println("-----------第" + (i + 1) + "次抽奖-----------");
            // 参加抽奖，第一步点击扣除积分
            activity.deductingPoints();

            // 第二步抽奖
            activity.raffle();
        }
    }
}
